<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            width: 800px;
            height: 500px;
            background-color: pink;
            display: flex;
            /*默认的主轴是x轴 row*/
            /*flex-direction: row;*/
            /*justify-content：是设置主轴上子元素的排列方式*/
            /*justify-content: flex-start;*/
            /*justify-content: flex-end;*/
            /*让我们子元素居中对齐*/
            /*justify-content: center;*/
            /*justify-content: space-around;*/
            /*先两边贴边 再分配剩余的空间*/
            /*justify-content: space-between;*/
            /*主轴为y轴*/
            flex-direction: column;
            /*justify-content: flex-start;*/
            /*justify-content: flex-end;*/
            /*justify-content: center;*/
            /*justify-content: space-around;*/
            justify-content: space-between;
        }
        div span{
            width: 150px;
            height: 100px;
            background-color: skyblue;
        }
    </style>
</head>
<body>
<div>
    <span>1</span>
    <span>2</span>
    <span>3</span>
</div>
</body>
</html>
